const { verifyToken } = require('../utiles/jwt');
const teacherContorller = require('../contorller/teacherContorller')
const router = require('express').Router();

router
// 添加教师
.post('/Add',verifyToken(),teacherContorller.addTeacher)
//获取教师列表
.get('/getTeacherList',verifyToken(),teacherContorller.getTeacherList)
//获取教师详情
.get('/getTeacherDetail',verifyToken(),teacherContorller.getTeacherDetail)
//修改教师
.put('/updateTeacher',verifyToken(),teacherContorller.updateTeacher)
//删除教师
.delete('/deleteTeacher',verifyToken(),teacherContorller.deleteTeacher)
//给教师分配班级
.post('/assignClass',verifyToken(),teacherContorller.assignClass)
//获取教师所教班级
.get('/getTeaAndClass',verifyToken(),teacherContorller.getTeaAndClass)
module.exports = router;